﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsChart
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            userControl11.Full_StartTime = new DateTime(2024, 1, 1, 0, 0, 0);
            userControl11.Full_EndTime = new DateTime(2024, 3, 1, 23, 59, 59);

            List<LineTip> LineTips = new List<LineTip>();
            LineTips.Add(new LineTip(new DateTime(2024, 1, 1, 0, 0, 0), new DateTime(2024, 2, 1, 0, 0, 0), "测试一个标题"));
            LineTips.Add(new LineTip(new DateTime(2024, 1, 21, 0, 0, 0), new DateTime(2024, 2, 5, 0, 0, 0), "第二个数据"));
            LineTips.Add(new LineTip(new DateTime(2024, 2, 28, 0, 0, 0), new DateTime(2024, 3, 1, 23, 0, 0), "第三个数"));
            userControl11.LineTips = LineTips;

            userControl11.Draw();
        }
    }
}
